/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import generica.Generica;
import java.io.Serializable;
import java.util.Calendar;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author calandreli
 */
@Entity
@Table(name = "Arquivar")
@SequenceGenerator(name = "arquivar_seq", sequenceName = "id_Arquivar", allocationSize = 1)
public class Arquivar implements Generica {

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "arquivar_seq")
    @Column(name = "id_Arquivar")
    private int id_Arquivar;
    @Column(name = "descricao")
    private String descricao;
    @Column(name = "motivo")
    private String motivo;

    @OneToOne
    @JoinColumn(name = "Processo")
    private Processo processo;

    @Column(name = "Situacao")
    private String Situacao;

    @Temporal(TemporalType.DATE)
    @Column(name = "dataArqu")
    private Calendar dataArqu;

    public Calendar getDataArqu() {
        return dataArqu;
    }

    public void setDataArqu(Calendar dataArqu) {
        this.dataArqu = dataArqu;
    }

    public String getMotivo() {
        return motivo;
    }

    public void setMotivo(String motivo) {
        this.motivo = motivo;
    }

    public int getId_Arquivar() {
        return id_Arquivar;
    }

    public void setId_Arquivar(int id_Arquivar) {
        this.id_Arquivar = id_Arquivar;
    }

    public String getSituacao() {
        return Situacao;
    }

    public void setSituacao(String Situacao) {
        this.Situacao = Situacao;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public Processo getProcesso() {
        return processo;
    }

    public void setProcesso(Processo processo) {
        this.processo = processo;
    }

    @Override
    public Serializable getIdentificador() {
        return this.id_Arquivar;
    }
}
